<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib uri="/struts-tags" prefix="s" %>
<%@ include file="/common/common.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/sys/menu/";  //应用的地址名
String modifyActionName = basePath+"SysMenuHelp_modify.action?op=savejs";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    
    <title>菜单帮助信息表编辑</title>
    <script type="text/javascript" src="<%=path %>/js/xheditor/xheditor-zh-cn.min.js"></script> 
<script type="text/javascript">
<!--
           $(function(){
            //编辑器初始化
               $('#vcHelpInfo').xheditor(defaultEditor);
               //初始化工作，因为远程载入该界面时无法通过在标签中进行设置相应的验证属性等信息，必须要在这里进行初始化
               $('#modifyBtn').linkbutton();
	           //点击添加按钮操作
			   $('#modifyBtn').click(function(){
                  $('#SysMenuHelp_modifyItem').submit();
	            });
	            //表单验证及提交处理操作
	           $('#SysMenuHelp_modifyItem').form({
			        url:'<%=modifyActionName%>',
			        onSubmit: function(){
			           if($(this).form('validate')){
			                 $.util.showLoading();
			                 $('#operateWindow').window('close');
                            return true;
			             }else{
			                return false;
			             }
			        },
			        success:function(data){
			            $.util.removeLoading();
                        returnOptMsg(data);
			        }
				});
           });
           
           
//-->
</script>
  </head>
  
  <body>
   <s:form action="SysMenuHelp_modifyItem" method="post">
    <input type="hidden" id="vcId" name="po.vcId" value="<s:property value="#parameters.chkSelf"/>"/>
	<table align="center" style="width:100%;" >
	  <caption>【<s:property value="#request.menuText"/>】帮助信息维护</caption>
      <tr><td>
        <textarea id="vcHelpInfo" name="po.vcHelpInfo"  rows="6" cols="80" style="width: 100%;height:300px"><s:property value="po.vcHelpInfo"/></textarea>
      </td></tr>
	    <tr>
	       <td align="right">
	       <a id="modifyBtn" href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-save">保存</a></td>
	    </tr>
	</table>    
   
   
   </s:form>
  </body>
</html>
